package com.dehui.traders.ui.news;

import android.content.Context;
import android.databinding.ObservableArrayList;
import android.databinding.ObservableField;
import android.databinding.ObservableList;

import com.dehui.traders.BR;
import com.dehui.traders.R;
import com.dehui.traders.bean.InformationBean;
import com.dehui.traders.utils.FullyGridLayoutManager;
import com.dehui.traders.utils.SimulatedDataManager;

import java.util.List;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.tatarka.bindingcollectionadapter2.ItemBinding;

/**
 * Created by hqq on 18.4.8.
 */

public class NoticeInformationViewModel extends BaseViewModel{

    public ObservableList<NoticeInformationItemViewModel> observableList = new ObservableArrayList<>();

    public ItemBinding<NoticeInformationItemViewModel> itemBinding = ItemBinding.of(BR.viewModel, R.layout.list_item_information_notice);

    public ObservableField<FullyGridLayoutManager> layoutManagerObservable =
            new ObservableField<>(new FullyGridLayoutManager(context,1));

    public NoticeInformationViewModel(Context context) {
        super(context);
        init();
    }

    private void init() {
    }
}
